package es.usj.apps.moviles.parsers;

import java.util.ArrayList;

public class WsResult<T> {
	
	public ArrayList<T> mArray = new ArrayList<T>();
	
	public boolean addObject(T obj)
	{
		return mArray.add(obj);
	}
	
	public Object getObject(int index)
	{
		return mArray.toArray()[index];
	}
	
	public int getLength()
	{
		return mArray.toArray().length;
	}
}
